package edu.suda.entity;

import lombok.*;

/****************
 * @Description:赠品
 * @author 苏大
 */
@Data
@Builder
public class Gift {
    @NonNull
    private Integer id;
    @NonNull
    private String title;
    private Double price;
    /** 赠品数量 */
    private Integer count;

    /** 如果要与 Product做双向关联 */
    @EqualsAndHashCode.Exclude
    @ToString.Exclude
    private Product product;
}
